package com.imooc.repository;

import com.imooc.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 功能描述: <br>
 * (订单Repository)
 *
 * @Author:Mr. xyb
 * @Date: 2018/5/18 17:05
 * @since: 1.8.0
 * @version: 1.0.0
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    /**
     * (根据openid分页查询订单信息)
     *
     * @param buyerOpenid 买家openid
     * @param pageable 分页对象
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);

}
